import request from '@/utils/request'

// 查询钢卷信息列表
export function listCoil(query) {
  return request({
    url: '/steel/coil/list',
    method: 'get',
    params: query
  })
}

// 查询钢卷信息详细
export function getCoil(id) {
  return request({
    url: '/steel/coil/' + id,
    method: 'get'
  })
}

// 新增钢卷信息
export function addCoil(data) {
  return request({
    url: '/steel/coil',
    method: 'post',
    data: data
  })
}

// 修改钢卷信息
export function updateCoil(data) {
  return request({
    url: '/steel/coil',
    method: 'put',
    data: data
  })
}

// 删除钢卷信息
export function delCoil(id) {
  return request({
    url: '/steel/coil/' + id,
    method: 'delete'
  })
}
